extends layout

block content
  include includes/navbar.pug
  h1(style={color: 'black'}) 图片分享
  hr
  .row#newcomments
    .col-12.col-md-8
      .card.mt-1.mb-1
        .card-body
          if username
            form(action="/images/", method='post', enctype='multipart/form-data')
              .form-group.row
                h4.col-12.col-md-10.card-title 上传图片
              .form-group.row
                label.col-12.col-md-2 游览
                input.col-12.col-md-10.form-control-file(type='file', name='imgfile')
              .form-group.row
                label.col-12.col-md-2 标题
                input.col-12.col-md-10.form-control-file(type='text', name='title')
              .form-group.row
                label.col-12.col-md-2 描述
                input.col-12.col-md-10.form-control-file(type='text', name='description')
              .form-group.row
                .col-12.offset-md-4.col-md-4
                  button.btn.btn-primary.btn-block(type='submit') 提交
          else
            .w-100.d-flex.justify-content-center.align-items-center(style="height: 200px")
              .d-inline-block
                | 登录以后可上传图片。
    .col-12.col-md-4
      include includes/stats.pug
      
    
    
          
  .row
    .col-12.col-md-8
      include includes/index.pug
    .col-12.col-md-4
      include includes/ranks.pug
      .list-group.mt-1#newcomments
        include includes/newcomments.pug  

  include includes/foot.pug
  script(src="/javascripts/index.js")